<template>
	<img alt="Vue logo" src="./assets/logo.png" />
	<HelloWorld msg="Hello Vue 3.0 + Vite" test="测试$attr" @click="handleClick" class="test">
		<p>内容1</p>
		<p>内容2</p>
	</HelloWorld>
</template>

<script>
	import HelloWorld from './components/HelloWorld.vue'

	export default {
		name: 'App',
		components: {
			HelloWorld,
		},
		created() {
			console.log('app', this)
		},
		methods: {
			handleClick() {
				console.log('点击了')
			},
		},
	}
</script>
<style scoped>
	.test {
		border: 1px solid #ccc;
	}
</style>
